<?php
if (!defined('APP') or !constant('APP')) die('Direct access not allowed!');

class Log 
{
    const ERROR = 1;
    const WARNING = 2;
    
    const DB = 3;
    const REQUEST = 4;

    public static function save($type, $text)
    {
        echo "Saved: ".$type." - ".$text;
    }
    
    public static function saveToHistory($data)
    {
        require_once './model/UserHistoryModel.php';
        UserHistoryModel::save($data);
    }
}

?>
